package state;

/**
 * 状态的使用
 **/
public class WindowContext {
	private WindowState state;

	public WindowContext(WindowState state) {
		this.state = state;
	}

	public WindowState getState() {
		return state;
	}

	public void setState(WindowState state) {
		this.state = state;
	}

	public void switchState() {
		this.state.handle();
	}
}
